composetable: invalidate cache based on symlink mtime too
authorNaïm Favier <n@monade.li>
Tue, 16 Nov 2021 11:53:38 +0000 (12:53 +0100)
committerNaïm Favier <n@monade.li>
Tue, 16 Nov 2021 11:53:38 +0000 (12:53 +0100)
commit22f523694393f2e4c5d26cdce6bcc1ee15c4185a
tree6d246537cb626238bf0e2f549c35c6ee4e416c7a
parentfd69b4174867a772984eb515099160de729a1005
composetable: invalidate cache based on symlink mtime too

When the compose file is a symbolic link, take the link itself's
modification time into account (in addition to its target's) in
determining whether to invalidate the compose cache.

This is useful e.g. on NixOS systems where the compose file might point
to a store path with an irrelevant modification time, and we want the
cache to expire when the symlink itself changes.
gtk/gtkcomposetable.c